/**
 * Created by vincent on 2017/9/11.
 */
moduleContent.config(function ($stateProvider) {
    $stateProvider

        .state("sz.contentQuizQuery", {
            cache: false,
            url: '/contentQuizQuery/:parentId',
            views: {
                'sz-main': {
                    templateUrl: 'templates/ContentQuizQuery.html',
                    controller: 'ContentQuizQuery'
                }
            },
            params: {
                parentId: null
            }
        })
        .state("sz.contentDynamicHtmlQuery", {
            cache: false,
            url: '/contentDynamicHtmlQuery/:parentId',
            views: {
                'sz-main': {
                    templateUrl: 'templates/ContentDynamicHtmlQuery.html',
                    controller: 'ContentDynamicHtmlQuery'
                }
            },
            params: {
                parentId: null
            }
        })
        .state("sz.contentArticleQuery", {
            cache: false,
            url: '/contentArticleQuery/:parentId',
            views: {
                'sz-main': {
                    templateUrl: 'templates/ContentArticleQuery.html',
                    controller: 'ContentArticleQuery'
                }
            },
            params: {
                parentId: null
            }
        })
        .state("sz.contentTaskQuery", {
            cache: false,
            url: '/contentTaskQuery/:parentId',
            views: {
                'sz-main': {
                    templateUrl: 'templates/ContentTaskQuery.html',
                    controller: 'ContentTaskQuery'
                }
            },
            params: {
                parentId: null
            }
        })


        .state("sz.contentQuizDetail", {
            cache: false,
            url: '/contentQuizDetail/:contentId',
            views: {
                'sz-main': {
                    templateUrl: 'templates/ContentQuizDetail.html',
                    controller: 'ContentQuizDetail'
                }
            },
            params: {
                contentId: null
            }
        })
        .state("sz.contentDynamicHtmlDetail", {
            cache: false,
            url: '/contentDynamicHtmlDetail/:contentId',
            views: {
                'sz-main': {
                    templateUrl: 'templates/ContentDynamicHtmlDetail.html',
                    controller: 'ContentDynamicHtmlDetail'
                }
            },
            params: {
                contentId: null
            }
        })
        .state("sz.contentArticleDetail", {
            cache: false,
            url: '/contentArticleDetail/:contentId',
            views: {
                'sz-main': {
                    templateUrl: 'templates/ContentArticleDetail.html',
                    controller: 'ContentArticleDetail'
                }
            },
            params: {
                contentId: null
            }
        })
        .state("sz.contentTaskDetail", {
            cache: false,
            url: '/contentTaskDetail/:contentId',
            views: {
                'sz-main': {
                    templateUrl: 'templates/ContentTaskDetail.html',
                    controller: 'ContentTaskDetail'
                }
            },
            params: {
                contentId: null
            }
        })
    ;


    DialogState.addState("addContentQuiz", {
        template: 'templates/AddContentQuiz.html',
        controller: 'AddContentQuiz'
    });

    DialogState.addState("addContentDynamicHtmlForFile", {
        template: 'templates/AddContentDynamicHtmlForFile.html',
        controller: 'AddContentDynamicHtmlForFile'
    });
    DialogState.addState("addContentDynamicHtmlForLink", {
        template: 'templates/AddContentDynamicHtmlForLink.html',
        controller: 'AddContentDynamicHtmlForLink'
    });
    DialogState.addState("addContentArticle", {
        template: 'templates/AddContentArticle.html',
        controller: 'AddContentArticle'
    });
    DialogState.addState("addContentTaskGroup", {
        template: 'templates/AddContentTaskGroup.html',
        controller: 'AddContentTaskGroup'
    });
    DialogState.addState("contentTaskMgt", {
        template: 'templates/ContentTaskMgt.html',
        controller: 'ContentTaskMgt'
    });

    DialogState.addState("contentFolderMgt", {
        template: 'templates/ContentFolderMgt.html',
        controller: 'ContentFolderMgt'
    });


    DialogState.addState("addQuizTopic", {
        template: "templates/AddQuizTopic.html",
        controller: "AddQuizTopic"
    });

    DialogState.addState("editQuizTopic", {
        template: "templates/EditQuizTopic.html",
        controller: "EditQuizTopic"
    });

    DialogState.addState("addQuizTopicAttribute", {
        template: "templates/AddQuizTopicAttribute.html",
        controller: "AddQuizTopicAttribute"
    });

    DialogState.addState("editQuizTopicAttribute", {
        template: "templates/EditQuizTopicAttribute.html",
        controller: "EditQuizTopicAttribute"
    });

    DialogState.addState("exerciseContentMove", {
        template: "templates/ExerciseContentMove.html",
        controller: "ExerciseContentMove"
    });

    DialogState.addState("exerciseContentSelect", {
        template: "templates/ExerciseContentSelect.html",
        controller: "ExerciseContentSelect"
    });
});
